package com.hoas.quickstart.threads.chapter03.chapter03_1_4_01;

public class Run2 {

    public static void main(String[] args) {
        System.out.println("notify()方法被执行后锁不会被释放, 调用notify方法后，并没有立即执行wait后的代码");
        Object lock = new Object();
        ThreadA a = new ThreadA( lock );
        a.start();
        NotifyThread b = new NotifyThread( lock );
        b.start();
    }

}
